<script setup lang='ts'>
import Button from "../../components/Button.vue";
import RightList from "../../components/RightList.vue";
import { XbsjEarthUi } from "../../scripts/xbsjEarthUi";
import { onBeforeUnmount, inject } from "vue";
import { createVueDisposer, toVR } from 'vue-xe2-plugin/dist-node/components/xe2/tools';
const d = createVueDisposer(onBeforeUnmount);
const xbsjEarthUi = inject('xbsjEarthUi') as XbsjEarthUi
const textAvoidance = toVR<boolean>(d, [xbsjEarthUi.activeViewer, 'textAvoidance']);//文字避让
</script>
<template>
    <RightList :title="'全局效果调整'">
        <Button :name="'wenzibirang'" :content="'文字避让'" :actived="textAvoidance === true"
            :click="() => { textAvoidance = !textAvoidance }" :left-button="true"></Button>
        
    </RightList>
</template>
<style scoped></style>